<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page import="model.*"%>
<%@ page import="business.factory.DAOFactory"%>
<%@ page import="java.util.*,business.dao.*" %>
<%@page import="java.text.SimpleDateFormat"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <link rel="stylesheet" type="text/css" href="res/layui/css/layui.css">
  <link rel="stylesheet" type="text/css" href="res/css/main.css">
<title>头部导航栏</title>
</head>
<style>
	.divcss5{ position:absolute;width:400px;height:200px;} 
	
	ul li span{
		  list-style:none;
		  font-size:25px;
		 /*  width:250px;
		  height:30px; */
		  line-height:30px;
		  color: black;
		}
	
</style>
<body>

	<ul class="layui-nav" style="background-color: white;">
 		<span style="color: black;">SPORTS GAME</span>
        <img src="res/img/logo.jpg">
	  <li class="layui-nav-item"><a href="main.action"><span>首页</span></a></li>
	  <li class="layui-nav-item"><a href="arrange.action"><span>赛程</span></a></li>
	  <li class="layui-nav-item"><a href="rule.action"><span>竞赛规则</span></a></li>
	  <li class="layui-nav-item">
	    <a href="score.action"><span>成绩</span></a>
	    <!-- <dl class="layui-nav-child">
	      <dd><a href="score.action">成绩统计</a></dd>
	      <dd><a href="">成绩查询</a></dd>
	    </dl> -->
	  </li>
	  <li class="layui-nav-item"><a href="addoiling.jsp"><span>发布加油稿</span></a></li>
	  <li class="layui-nav-item"><a href="aboutmyinfo.action"><span>关于</span></a></li>
	  
	  <c:if test="${loginuser == null}">
	  	<li class="layui-nav-item" style="margin-left:450px; "><a href="login.jsp"><span>登陆</span></a></li>
	  </c:if>
	  
	  <li class="layui-nav-item" style="padding-left: 0px" >
	    <a href="javascript:;"><span>管理</span></a>
	    <dl class="layui-nav-child">
	    
	    	<c:if test="${loginuser == null}">
	     		 <dd><a href="register.jsp">用户注册</a></dd>
	      	</c:if>
	      	
	      	<c:if test="${loginuser != null}">
	      		<dd><a href="loginout.action">退出登陆</a></dd>
	      	</c:if>
	    </dl>
	  </li>
	 
	</ul> 



	<%-- <div class="header layui-nav" id="aa">
	    <div class="menu-btn">
	      <div class="menu"></div>
	    </div>
	    <h1 class="logo">
	      <a href="index.jsp">
	        <span>SPORTS GAME</span>
	        <img src="res/img/logo.jpg">
	      </a>
	    </h1>
	    <div class="nav">
	      <a href="main.action">主页</a>
	      <a href="arrange.action">赛程</a>
	      <!-- <a href="signup.jsp">报名</a> -->
	      <a href="score.action">成绩</a>
	      <!-- <a href="organizing.jsp">组委会</a> -->
	      <a href="rule.action">竞赛规则</a>
	      <c:if test="${loginuser != null}">
	      <a href="addoiling.jsp">发布加油稿</a>
	      </c:if>
	      <a href="aboutmyinfo.action">关于</a>
	    </div>
	  
	  	<div  class="welcome-text">
	  		<c:if test="${loginuser == null}">
		  		<p>
			  		<i class="layui-icon layui-icon-friends"></i>
		  	    	<a href='login.jsp'>登录</a>
		  	    </p>
	  	    </c:if>
	  	   <c:if test="${loginuser != null}">
	  	       <c:choose>
		  			<c:when test="${usertype == 1 }">
		  			   <p>
		  					<i class="layui-icon layui-icon-friends"></i>
		  					角色：<span>管理员</span>
		  					用户:<span>${loginuser.getRealname() }</span>
					  		<i class="layui-icon layui-icon-face-smile-fine"></i>
				  	    	<span><a href='loginout.action'>退出</a> </span>
				  	    	
				  	    </p>
			  	    </c:when>
			  	    <c:when test="${usertype == 2  }">
			  	       <p style="color: black;">
		  					<i class="layui-icon layui-icon-friends"></i>
		  					用户:<span>${loginuser.getStudentname() }</span>&nbsp;&nbsp;
		  					角色：<span>学生</span>&nbsp;&nbsp;
					  		<i class="layui-icon layui-icon-face-smile-fine"></i>&nbsp;&nbsp;&nbsp;&nbsp;
				  	    	<span><a href='loginout.action'>退出</a> </span>
				  	   </p>
			  	    </c:when>	
			  	   <c:when test="${usertype == 3  }">
			  	       <p style="color: black;">
		  					<i class="layui-icon layui-icon-friends"></i>
		  					用户:<span>${loginuser.getTeachername() }</span>&nbsp;&nbsp;
		  					角色：<span>教师</span>&nbsp;&nbsp;
					  		<i class="layui-icon layui-icon-face-smile-fine"></i>&nbsp;&nbsp;&nbsp;&nbsp;
				  	    	<span><a href='loginout.action'>退出</a> </span>
				  	   </p>
			  	    </c:when>
			  	    <c:when test="${usertype == 1  }">
			  	       <p style="color: black;">
		  					<i class="layui-icon layui-icon-friends"></i>
		  					用户:<span>${loginuser.getNote() }</span>&nbsp;&nbsp;
		  					角色：<span>游客</span>&nbsp;&nbsp;
					  		<i class="layui-icon layui-icon-face-smile-fine"></i>&nbsp;&nbsp;&nbsp;&nbsp;
				  	    	<span><a href='loginout.action'>退出</a> </span>
				  	   </p>
			  	    </c:when>	
		  	  </c:choose>
	  	     </c:if>		</div>
	</div> --%>
	<script src="res/layui/layui.js"></script>  
</body>

<script>
layui.use(['jquery','form','layer'], function(){
  var $ = layui.jquery;
 
  })
</script>
</html>
